﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="Header.ascx.vb" Inherits="FrontEnd_Control_WhatCookToDay_Header" %>
<%@ Import Namespace="Cls_Common" %>
<script type="text/javascript">
    function OpenFormLogin() {
        $("#LoginForm").click();
    }
    function OpenFormRegister() {
        $("#RegisterForm").click();
    }

</script>

            <div class="row_toppages">
                    <div class="widthpages_toppages">                    		
                            	<!-- Language -->
                                <div class="language_toppages">
                                		<div class="tabs_language">
                                                        <ul>
                                                                <li id="current"><a href="#"><span>TIẾNG VIỆT</span></a></li>
                                                                <li><a href="#"><span>TIẾNG ANH</span></a></li>
                                                                
                                                               
                                                        </ul>
                                       </div>
                                </div>
                                <!-- Language -->
                          
                                 <!--Link control -->
                                    <div class="box_itemcontrol">
                                        <ul class="item_toppages">
  
      
                                 <%  If Session("UserName") Is Nothing Then%>
                                <li><a id="LoginForm" class="thickbox" href='<%=MainDomain & "dang-nhap.html?keepThis=true&TB_iframe=true&height=250&width=450&modal=true" %>'>Login</a></li>
                                <li><img src='<%=ResolveUrl("~/FrontEnd/images/arrow_dot.png")%>' border="0" /></li>
                                <li><a id="RegisterForm" class="thickbox" href='<%=MainDomain & "dang-ky.html?keepThis=true&TB_iframe=true&height=550&width=620&modal=true" %>'>Đăng ký</a></li>
                                <li><img src='<%=ResolveUrl("~/FrontEnd/images/arrow_dot.png")%>' border="0" /></li>

                                <% Else%>
                                  
                                    <li><img src='<%=ResolveUrl("~/FrontEnd/images/arrow_dot.png")%>' border="0" /></li>
                                     <li><asp:HyperLink ID="lbtnExit" runat="server" Text="Thoát" NavigateUrl="~/Logout.aspx" ></asp:HyperLink> </li>
                                     <li><img src='<%=ResolveUrl("~/FrontEnd/images/arrow_dot.png")%>' border="0" /></li>
                                     <li><a href='<%=MainDomain &"myAdmin.html" %>'>Quản lý</a> </li>
                                     <li><img src='<%=ResolveUrl("~/FrontEnd/images/arrow_dot.png")%>' border="0" /></li>
                                       <li><a href="#">Chào bạn <b style="color: #FF1206"> <%= Session("UserName")%></b></a></li>
                                    

                              <% End If%>
                                                                                                                                                                               
                                        </ul>
                                    </div>                        
                                    <!-- end link control -->                          
                           
                    </div>
            </div>

             <!--header -->
             <div class="row_headerpages">
                    <div class="widthpages_headerpages">
                  	  		<div class="logopages_cuisine">
                    				<a href="<%=MainDomain %>" target="_blank"><img src='<%=MainDomain & "FrontEnd/images/logo2.png" %>'  border="0" /></a>
                    		</div>
                           
                            <!-- hotline-->
                            <div class="hotline_toppages">
                                    <div class="text_hotline_toppages">
                                            <img  src='<%=MainDomain & "FrontEnd/images/hotline.png" %>'   border="0" align="absmiddle"> Hotline: <span><%=Hotline %></span>
                                    </div>
                            </div>
                            <!-- hot line -->
                            
                    </div>
             </div>